package com.example.demo.map;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 养红包任务表
 */
@Data
@Entity
@Table(name = "db_raise_activity_task")
public class RaiseActivityTask {

    /**
     * 主键
     */
    @Id
    @Column(name = "task_id")
    private Long taskId;

    /**
     * 活动ID
     */
    @Column(name = "activity_id")
    private Long activityId;

    /**
     * 奖池ID
     */
    @Column(name = "prize_id")
    private Long prizeId;

    /**
     * 任务类型：METTING_PLACE 会场、SPECIAL_AREA 专区、LIVE 直播、ASSIST 助力
     * {@link com.yujia.shop.common.enums.RaiseActivityEnums.RaiseActivityTaskType}
     */
    @Column(name = "type")
    private String type;

    /**
     * 浏览时间（秒）
     */
    @Column(name = "browse_time")
    private Integer browseTime;

    /**
     * 金额上限
     */
    @Column(name = "money_max")
    private BigDecimal moneyMax;

    /**
     * 任务数量
     */
    @Column(name = "task_amount")
    private Integer taskAmount;

    /**
     * 任务名称
     */
    @Column(name = "task_name")
    private String taskName;

    /**
     * 任务链接
     */
    @Column(name = "task_url")
    private String taskUrl;

    /**
     * 新用户奖池ID
     */
    @Column(name = "new_prize_id")
    private Long newPrizeId;

    /**
     * 老用户奖池ID
     */
    @Column(name = "old_prize_id")
    private Long oldPrizeId;

    /**
     * 权重
     */
    @Column(name = "sort_num")
    private Integer sortNum;

    /**
     * 状态 0-开启，1-关闭
     * {@link com.yujia.shop.common.enums.RaiseActivityEnums.RaiseActivityStatus}
     */
    @Column(name = "status")
    private Integer status;

}
